import { OrderService } from 'src/core/service/order.service';
import { Controller, Param, Post } from "@nestjs/common";


@Controller('orders')
export class OrderController {
    constructor(private readonly o: OrderController) { }
    @Post(':userId')
    async createOrder(@Param('userId') userId: string) {
        return this.o.createOrder(userId);
    }
}